package package6;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileCopy {
	public static void main(String[] args) {
		try {
			FileInputStream fi = new FileInputStream("e:\\");
			FileOutputStream fo = new FileOutputStream("321.txt");
			byte[] b = new byte[fi.available()];
			fi.read(b);
			fo.write(b);
			fo.flush();
			fo.close();
			fi.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
